<template>
    <div>
        <div class="status-bar" :style="{'height': statusHeight}"></div>
        <div class="header">
            <text class="iconfont headerIcon" @click="back">&#xe601;</text>
            <text class="headerTextSize">{{title}}</text>
            <div class="header_right" @click="leftClick">
                <text class="headerRightText">{{titleLeft}}</text>
            </div>
        </div>
    </div>
</template>
<script>
export default {
    props: ['title', 'titleLeft'],
    data () {
        return {
            statusHeight: Number.parseInt(this.statusBarHeight || weex.config.env.statusBarHeight || 40),
           
        }
    },
    created () {
        
    },
    methods: {
        // 返回
        back () {
            this.$router.back();
        },
        leftClick () {
            this.$emit("leftClick")
        }
    }
}
</script>
<style scoped>
@import 'src/js/css/base.scss';
.iconfont {
    font-family: iconfont;
}

.status-bar{
    width: 750px;
    height: 40px;
    background-color: #1E90FF;
}
.header{
    display: flex;
    flex-direction: row;
    background-color: #1E90FF;
    height: 88px;
    align-items: center;
    justify-content: space-between;
}
.headerRightText{
    font-size: 35px;
    color: #fff;
    padding-right: 20px;
    text-align: right;
    width: 180px;
}
.headerTextSize{
    flex: 1;
    font-size: 35px;
    color: #fff;
    margin-left: 5px;
    text-align: center;
}
.header_right{
    flex-direction: row;
}
.headerIcon{
    width: 180px;
    font-size: 40px;
    color: #fff;
    margin-left: 24px;
    margin-right: 15px;
}

</style>
